.folderItem {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  margin: 2px 0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  min-height: 40px;
  border: 1px solid transparent;
  background: #fff;
}

.folderItem:hover {
  background: rgba(99, 102, 241, 0.04);
  border-color: rgba(99, 102, 241, 0.15);
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.folderItem.selected {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.3);
  transform: none;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.folderItem.hidden {
  opacity: 0.6;
}

.content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
}

.iconAndName {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 12px;
}

.folderIcon {
  color: #f59e0b;
  font-size: 18px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.packageIcon {
  color: #10b981;
  font-size: 18px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.folderItem:hover .folderIcon {
  color: #d97706;
  transform: scale(1.1);
}

.folderItem:hover .packageIcon {
  color: #059669;
  transform: scale(1.1);
}

.name {
  font-size: 15px;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  font-weight: 500;
  transition: color 0.2s ease;
}

.folderItem:hover .name {
  color: #1f2937;
}

.folderItem.selected .name {
  color: #374151;
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  line-height: 16px;
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
  transition: all 0.2s ease;
}

.folderItem:hover .badge {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Responsive design */
@media (max-width: 768px) {
  .folderItem {
    padding: 10px 12px;
    min-height: 44px;
    margin: 3px 0;
  }

  .iconAndName {
    gap: 10px;
  }

  .folderIcon,
  .packageIcon {
    font-size: 16px;
  }

  .name {
    font-size: 14px;
  }

  .badge {
    font-size: 10px;
    padding: 3px 8px;
  }
}
